package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.serviceImpl.UpdateQinYouInfoNoImgServiceImpl;

@CrossOrigin
@Controller
@ResponseBody
public class UpdateQinYouInfoNoImgController {
    @Autowired
    private ResultData resultData;
    @Autowired
    private UpdateQinYouInfoNoImgServiceImpl updateQinYouInfoNoImgService;
    @RequestMapping(value = "/updateqinyouInfoNoImg",method = RequestMethod.POST)
    public ResultData updateqinyouInfoNoImg(@RequestParam(value = "qinyou") String qinyou, @RequestParam(value = "visualize") String visualize, @RequestParam(value = "purpose") String purpose,
                                             @RequestParam(value = "theSite") String theSite, @RequestParam(value = "bfDescribe")String bfDescribe, @RequestParam(value = "id")String id){
        System.out.println("清油信息不带图片视频修改前端连接");
        resultData = updateQinYouInfoNoImgService.updateQinYouInfoNoImgService(qinyou,visualize,purpose,theSite,bfDescribe,id);
        return resultData;
    }
}
